package model;

public class UseCaseModelImplemention implements UseCaseModel {

	public String readDocumentation(String request) {
		return ServerConnector.getResponse("readDocumentation", request);
	}

	public String commentDocumentation(String request) {
		return ServerConnector.getResponse("commentDocumentation", request);
	}

	public String createNewDocumentation(String request) {
		if (request != null && !request.isEmpty()) {
			return ServerConnector.getResponse("createNewDocumentation",
					request);
		} else {
			return "null";
		}
	}

	public String rateDocumentation(String request) {
		if (request != null && !request.isEmpty()) {
			return ServerConnector.getResponse("rateDocumentation", request);
		} else {
			return "";
		}
	}

	public String editDocumentation(String request) {
		if (request != null && !request.isEmpty()) {
			return ServerConnector.getResponse("editDocumentation", request);
		} else {
			return "";
		}
	}

	public String searchRevision(String request) {
		if (request != null && !request.isEmpty()) {
			return ServerConnector.getResponse("searchRevision", request);
		} else {
			return "";
		}
	}
}